/*
 * author      : dormi330
 * date        : 2018/6/27
 * project     : mybatis
 * description : 卖家相关的服务
 */

package com.deep.trade.adaptor.required;

import com.deep.trade.application.AppRuntimeEvn;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SellerMgmtService {

    private AppRuntimeEvn appRuntimeEvn;

    @Autowired
    public SellerMgmtService(AppRuntimeEvn appRuntimeEvn) {
        this.appRuntimeEvn = appRuntimeEvn;
    }

    // 判断 审计人 auditorId 拥有对 seller的订单的审核权限
    public boolean canUserAuditOrder(String sellerId) {
        String token = appRuntimeEvn.getToken();
        // 根据token 获取授权人信息
        return true;
    }

}
